home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / octa209s.zip / octave-2.09 / libs / f2c / libf77 / c_cos.c < prev    next >
C/C++ Source or Header  |  1994-05-06  |  276b  |  17 lines

  1. #include "f2c.h"
  2.  
  3. #ifdef KR_headers
  4. extern double sin(), cos(), sinh(), cosh();
  5.  
  6. VOID c_cos(r, z) complex *r, *z;
  7. #else
  8. #undef abs
  9. #include "math.h"
  10.  
  11. void c_cos(complex *r, complex *z)
  12. #endif
  13. {
  14. r->r = cos(z->r) * cosh(z->i);
  15. r->i = - sin(z->r) * sinh(z->i);
  16. }
  17.